-
Notifications
You must be signed in to change notification settings - Fork 8k
posix: use posix_time.h and posix_signal.h [v2] #96589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
posix: use posix_time.h and posix_signal.h [v2] #96589
Conversation
e8704a7
to
5e37e7e
Compare
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
Identical to the previous version aside from
|
8dd1251
to
dc5dc6a
Compare
Assuming that the `posix` tag will trigger `posix` tests to be run when this testsuite is changed. Signed-off-by: Chris Friedt <[email protected]>
Create a header for satisfying POSIX conformance requirements of time.h that is named posix_time.h rather than time.h. The primary reason for doing so, is that the de-facto owner of time.h is the C library. This new header only defines required POSIX symbols that form a strict superset over the ISO C time.h symbols. V2 Signed-off-by: Chris Friedt <[email protected]>
Create a header for satisfying POSIX conformance requirements of signal.h that is named posix_signal.h rather than signal.h. The primary reason for doing so, is that the de-facto owner of signal.h is the C library. This new header only defines required POSIX symbols that form a strict superset over the ISO C signal.h symbols. V2 Signed-off-by: Chris Friedt <[email protected]>
33ad822
to
fa6eb36
Compare
|
Update the hostap module to use non-prefixed paths for the ISO C time.h and signal.h headers. Signed-off-by: Chris Friedt <[email protected]>
615605c
to
911602d
Compare
To avoid conflicts between the C library's `time.h` and signal.h use an "override" header (when necessary) for C libraries that do not themselves provide POSIX definitions in `time.h` or `signal.h`. V2 Signed-off-by: Chris Friedt <[email protected]>
911602d
to
0b25fd0
Compare
|
|
@jukkar @ycsin @fabiobaltieri @jhedberg - please (re-)review when you have time |
@stephanosio - can you review this today? If not I'll self-assign again. |
This is version 2 of #95226
To avoid conflicts between the C library's
time.h
andsignal.h
use an "override" header (when necessary) for C libraries that do not themselves provide POSIX definitions intime.h
orsignal.h
.In order to achieve that, provide
posix_time.h
andposix_signal.h
that define only the POSIX symbols that are not defined by ISO C.https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html
Required by #88547
Testing Done:
Also, grepped through all module sources to make sure that none were still pulling in
zephyr/posix/time.h
orzephyr/posix/signal.h
.